<script>
    document.domain = window.location.hostname.split('.').slice(-3).join('.');
</script>